package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagGroupDO;
import com.starlink.model.request.SchoolbagGroupRequest;
import com.starlink.model.vo.SchoolbagGroupVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagGroupDtoMapper {

    SchoolbagGroupDtoMapper INSTANCE = Mappers.getMapper(SchoolbagGroupDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagGroupDO
    * @return
    */
    SchoolbagGroupVO do2VO(SchoolbagGroupDO schoolbagGroupDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagGroupDO request2DO(SchoolbagGroupRequest request);
}
